package com.ulife.order.components.core.result;

/**
 * Created by Lbq on 2016/06/12.
 */
public class BaseResult<T> {
    public BaseResult() {
        this.code = ResultCode.Failure;
    }

    /**
     * 0 失败 ， 1 成功 , 2 重复
     */
    private ResultCode code;
    private T data;
    private String message;

    public ResultCode getCode() {
        return this.code;
    }

    public void setCode(ResultCode code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
